Optimal. Leaf size=25 \[ \frac {\text {Ci}\left (b x^n\right ) \sin (a)}{n}+\frac {\cos (a) \text {Si}\left (b x^n\right )}{n} \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.02, antiderivative size = 25, normalized size of antiderivative = 1.00, number of steps
used = 3, number of rules used = 3, integrand size = 12, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.250, Rules used = {3458, 3457,
3456} \begin {gather*} \frac {\sin (a) \text {CosIntegral}\left (b x^n\right )}{n}+\frac {\cos (a) \text {Si}\left (b x^n\right )}{n} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 3456
Rule 3457
Rule 3458
Rubi steps
\begin {align*} \int \frac {\sin \left (a+b x^n\right )}{x} \, dx &=\cos (a) \int \frac {\sin \left (b x^n\right )}{x} \, dx+\sin (a) \int \frac {\cos \left (b x^n\right )}{x} \, dx\\ &=\frac {\text {Ci}\left (b x^n\right ) \sin (a)}{n}+\frac {\cos (a) \text {Si}\left (b x^n\right )}{n}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A]
time = 0.04, size = 23, normalized size = 0.92 \begin {gather*} \frac {\text {Ci}\left (b x^n\right ) \sin (a)+\cos (a) \text {Si}\left (b x^n\right )}{n} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A]
time = 0.07, size = 24, normalized size = 0.96
method | result | size |
derivativedivides | \(\frac {\sinIntegral \left (b \,x^{n}\right ) \cos \left (a \right )+\cosineIntegral \left (b \,x^{n}\right ) \sin \left (a \right )}{n}\) | \(24\) |
default | \(\frac {\sinIntegral \left (b \,x^{n}\right ) \cos \left (a \right )+\cosineIntegral \left (b \,x^{n}\right ) \sin \left (a \right )}{n}\) | \(24\) |
risch | \(\frac {i {\mathrm e}^{i a} \expIntegral \left (1, -i b \,x^{n}\right )}{2 n}-\frac {{\mathrm e}^{-i a} \pi \,\mathrm {csgn}\left (b \,x^{n}\right )}{2 n}+\frac {{\mathrm e}^{-i a} \sinIntegral \left (b \,x^{n}\right )}{n}-\frac {i {\mathrm e}^{-i a} \expIntegral \left (1, -i b \,x^{n}\right )}{2 n}\) | \(74\) |
meijerg | \(\frac {\sqrt {\pi }\, \left (\frac {2 \gamma +2 n \ln \left (x \right )+\ln \left (b^{2}\right )}{\sqrt {\pi }}-\frac {2 \gamma }{\sqrt {\pi }}-\frac {2 \ln \left (2\right )}{\sqrt {\pi }}-\frac {2 \ln \left (\frac {b \,x^{n}}{2}\right )}{\sqrt {\pi }}+\frac {2 \cosineIntegral \left (b \,x^{n}\right )}{\sqrt {\pi }}\right ) \sin \left (a \right )}{2 n}+\frac {\cos \left (a \right ) \sinIntegral \left (b \,x^{n}\right )}{n}\) | \(78\) |
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [C] Result contains higher order function than in optimal. Order 9 vs. order
4.
time = 0.42, size = 91, normalized size = 3.64 \begin {gather*} -\frac {{\left (i \, {\rm Ei}\left (i \, b x^{n}\right ) - i \, {\rm Ei}\left (-i \, b x^{n}\right ) + i \, {\rm Ei}\left (i \, b e^{\left (n \overline {\log \left (x\right )}\right )}\right ) - i \, {\rm Ei}\left (-i \, b e^{\left (n \overline {\log \left (x\right )}\right )}\right )\right )} \cos \left (a\right ) - {\left ({\rm Ei}\left (i \, b x^{n}\right ) + {\rm Ei}\left (-i \, b x^{n}\right ) + {\rm Ei}\left (i \, b e^{\left (n \overline {\log \left (x\right )}\right )}\right ) + {\rm Ei}\left (-i \, b e^{\left (n \overline {\log \left (x\right )}\right )}\right )\right )} \sin \left (a\right )}{4 \, n} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A]
time = 0.38, size = 35, normalized size = 1.40 \begin {gather*} \frac {\operatorname {Ci}\left (b x^{n}\right ) \sin \left (a\right ) + \operatorname {Ci}\left (-b x^{n}\right ) \sin \left (a\right ) + 2 \, \cos \left (a\right ) \operatorname {Si}\left (b x^{n}\right )}{2 \, n} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \int \frac {\sin {\left (a + b x^{n} \right )}}{x}\, dx \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {could not integrate} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [F]
time = 0.00, size = -1, normalized size = -0.04 \begin {gather*} \int \frac {\sin \left (a+b\,x^n\right )}{x} \,d x \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________